/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI.Dialogs;

import GUI.Components.CancelButton;
import other.Wizard;
import java.awt.BorderLayout;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JRootPane;
import javax.swing.JTextArea;

/**
 *
 * @author David
 */
public class AboutDialog extends BasicDialog
{

    private JTextArea textarea = new JTextArea("Banana3D\n"
            + "Using"
            + "\nJMonkeyEngine          \thttp://jmonkeyengine.org/"
            + "\nSearchableComboBox:    \thttp://www.java.happycodings.com/Java_Swing/code6.html"
            + "\nSwingX:                \thttps://swingx.java.net/"
            + "\nt0neg0d-GUI:                \thttp://hub.jmonkeyengine.org/wiki/doku.php/jme3:contributions:tonegodgui"
            + "\nLemur:                \thttp://hub.jmonkeyengine.org/forum/topic/lemur-work-in-progress-posted/"
            + "\nLogo by:               \tarmaganvideos http://www.youtube.com/channel/UCewxBLhWDSZUvtOnlXdI_sA");
    private JLabel logoLabel = new JLabel(Wizard.resizeImage(new ImageIcon("dat//img//other//logo_XL.png").getImage(), 500, 300, false));

    /**
     *
     */
    public AboutDialog()
    {
        getRootPane().setWindowDecorationStyle(JRootPane.NONE);
        setTitle("About");
        add(logoLabel, BorderLayout.NORTH);
        add(textarea, BorderLayout.CENTER);
        add(new CancelButton(this, "Close"), BorderLayout.SOUTH);
        pack();
        setModal(false);
        setLocationRelativeTo(null);
        setVisible(true);
    }
}
